-- GENERATED SPELL FOR [Elementalist Mahfuun] --


function spell0_33328(pUnit, Event) --@Lava Burst,n/a--
pUnit:FullCastSpellOnTarget(61924,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33328', 2500, 1)
end

function spell1_33328(pUnit, Event) --@Storm Cloud,n/a--
pUnit:FullCastSpellOnTarget(65133,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33328', 32000, 1)
end

function Sorts_33328(pUnit, Event)
local choix_sorts_33328 = math.random(0, 1)
if choix_sorts_33328 == 0 then
pUnit:RegisterEvent('spell0_33328', 1, 1)
end
if choix_sorts_33328 == 1 then
pUnit:RegisterEvent('spell1_33328', 1, 1)
end
end

function mob33328_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33328', math.random(1500, 3000), 1)
end

function mob33328_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33328_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33328_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33328, 1, 'mob33328_Action')
RegisterUnitEvent(33328, 2, 'mob33328_Leave')
RegisterUnitEvent(33328, 3, 'mob33328_Kill')
RegisterUnitEvent(33328, 4, 'mob33328_Die')
